/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package LiveReservations.gui.control;

import LiveReservations.gui.control.ILoginUIPresenter;
import LiveReservations.gui.ILoginUI;

/**
 *
 * @author Aeon
 */
public class LoginUIPresenter implements ILoginUIPresenter {
    private String username;
    private char [] password;

    public LoginUIPresenter(String username, char[] password) {
        this.username = username;
        this.password = password;
    }

    @Override
    public String getUsername() {
        return username;
    }

    @Override
    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public char[] getPassword() {
        return password;
    }

    @Override
    public void setPassword(char[] password) {
        this.password = password;
    }
    
    @Override
    public void checkLogin(ILoginUI form,String username,char [] password)
    {
        if(username != null) //TODO
        {
            form.display("success");
        }
        else
        {
            form.display("fail");
        }   
            
    }
    
}
